package com.gibs.peixunapi.result;

import lombok.Data;

/**
 * @author liangjiawei
 * @date 2020/08/20/17:22
 * @Version 1.0
 * @Description:
 */
@Data
public class PageData<T> {

    private Integer total;
    private Integer pageNum;
    private Integer limit;
    private Integer pages;
    private Integer current;
    private T data;

    public PageData() {

    }
    public PageData(Integer total, Integer limit, Integer current, T data) {
        this.total = total;
        this.limit = limit;
        this.current = current;
        this.data = data;
    }
    public PageData(Integer total, Integer limit, Integer current) {
        this.total = total;
        this.limit = limit;
        this.current = current;
        this.data = null;
    }

    public PageData(Integer total, Integer pageNum, Integer pageSize, Integer limit, Integer pages, T data) {
        this.total = total;
        this.pageNum = pageNum;
        this.limit = limit;
        this.pages = pages;
        this.data = data;
    }
    public PageData(Integer total, Integer pageNum, Integer pageSize, Integer limit, Integer pages) {
        this.total = total;
        this.pageNum = pageNum;
        this.limit = limit;
        this.pages = pages;
        this.data = null;
    }


}
